/*
 * @Description:分布类型
 * @Author: iamsmiling
 * @Date: 2021-06-05 17:39:34
 * @LastEditTime: 2021-06-05 18:09:26
 */
enum PublishType {
  ad, //广告主
  platform, // 流量主
  interOrganizationCooperation,

  ///异业合作
  agent,

  ///分销代理
  activityCooperation,

  ///活动合作
  enterpriseService

  ///企业服务
}

extension PublishTypeKit on PublishType {
  String get name =>
      {
        PublishType.ad: "广告主",
        PublishType.platform: "流量主",
        PublishType.interOrganizationCooperation: "异业合作",
        PublishType.agent: "分销代理",
        PublishType.activityCooperation: "活动合作",
        PublishType.enterpriseService: "企业服务",
      }[this] ??
      "";
  String get title =>
      {
        PublishType.ad: "发布广告主合作信息",
        PublishType.platform: "发布流量主合作信息",
        PublishType.interOrganizationCooperation: "发布异业合作信息",
        PublishType.agent: "发布分销代理合作信息",
        PublishType.activityCooperation: "发布活动合作信息",
        PublishType.enterpriseService: "发布企业服务合作信息",
      }[this] ??
      "";
}

class PublishCategoryEntity {
  late String icon;
  late String label;
  late PublishType type;
  late String description;

  PublishCategoryEntity(
      {required this.icon,
      required this.type,
      required this.label,
      required this.description});
}
